#include <iostream>

using namespace std;

static int Max(int a, int b) {
    if (b > a)
        return b;
    else
        return a;
}

static float Max(float a, float b, float c) {
    if (b > a)
        a = b;
    if (c > a)
        a = c;
    return a;
}

int main() {
    int a, b;
    float d, e, f;
    cin >> a >> b;
    cin >> d >> e >> f;
    int m;
    m = Max(a, b);
    cout << "max_i = " << m << endl;
    float n;
    n = Max(d, e, f);
    cout << "max_f = " << n << endl;
    return 0;
}
